<include file="public:header" />
<!--会员列表-->
<div class="pad_10" >
    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
            <tr>
                <td>
                <div class="explain_col">
                    <input type="hidden" name="g" value="admin" />
                    <input type="hidden" name="m" value="user" />
                    <input type="hidden" name="a" value="index" />
                    <input type="hidden" name="menuid" value="{$menuid}" />
                    &nbsp;关键字 :
                    <input name="keyword" type="text" class="input-text" size="25" value="{$search.keyword}" />
                    <input type="submit" name="search" class="btn" value="搜索" />
                </div>
                </td>
            </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('user/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th>ID</th>
                <th align="left">姓名</th>
                <th align="left">奖励金额</th>
                <th align="left">状态</th>
            </tr>
        </thead>
    	<tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.id}</td>
                <td align="left">{$val.uid}</td>
                <td align="left">{$val.shouru}</td>
                <td align="left">
				<switch name="val.status" >
					<case value="0"><a href="javascript:;" class="mod_data" data="1" id="{$val.id}">已申请,待审核</a></case>
					<case value="1"><a href="javascript:;" class="mod_data" data="2" id="{$val.id}">已审核,待支付</a></case>
					<case value="2"><a href="javascript:;">已支付</a></case>
					<default /><a href="javascript:;">----</a>
				</switch></td>
            </tr>
            </volist>
    	</tbody>
    </table>
    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('user/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
        <div id="pages">{$page}</div>
    </div>

    </div>
</div>
<script>
$(function(){
	$('.mod_data').click(function(){
		var id = $(this).attr('id');
		var s = $(this).attr('data');
		$.post(
			'index.php?g=admin&m=jiangli&a=mod',
			{'id':id, 's':s},
			function(ref){
				ref = eval("("+ref+")");
				if(ref.code){
					alert('修改成功');
					location.reload();
				}else{
					alert('修改失败');
				}
			}
		);
	})
})
</script>
<include file="public:footer" />
</body>
</html>
<link rel="stylesheet" type="text/css" href="__STATIC__/js/calendar/calendar-blue.css"/>
<script type="text/javascript" src="__STATIC__/js/calendar/calendar.js"></script>
